//
//  SNNViewController.m
//  UI考试_团购应用
//
//  Created by lanou3g on 15-3-24.
//  Copyright (c) 2015年 胡航. All rights reserved.
//

#import "SNNViewController.h"
#import "Model.h"
#import "DataHandle.h"

@interface SNNViewController ()

@end

@implementation SNNViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    self.view.backgroundColor = [UIColor redColor];

}

-(void)viewDidAppear:(BOOL)animated
{

    CGRect rect = [self.HHLabel.text boundingRectWithSize:CGSizeMake(self.HHLabel.frame.size.width, 2000) options:(NSStringDrawingUsesLineFragmentOrigin) attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:23.0f]} context:nil];
    
    CGRect temp = self.HHLabel.frame;
    
    temp.size.height = rect.size.height;
    self.HHLabel.frame = temp;

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
